<form action="administrator-user-addscore" method="post" onsubmit="return check_score();">
<table class="TableA" width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF">
	<tr>
		<td height="25" align="right" width="40%"">用户email: </td>
		<td height="25" align="left">
			<?php echo $this->userName;?>
		</td>
	</tr>
	<tr>
		<td height="25" align="right" width="40%"">用户积分：</td>
		<td height="25" align="left">
			<?php echo $this->integral;?>
		</td>
	</tr>
	<tr>
		<td height="25" align="right" width="50%"">1美元=</td>
		<td height="25" align="left">
			<?php echo $this->scoreDollar;?>
		</td>
	</tr>
	<tr>
		<td height="25" align="right" width="50%"">增加积分：</td>
		<td height="25" align="left">
			<input type="text" name="score" id="score" />
			<input type="hidden" name="uid" value="<?php echo $this->uid;?>"
		</td>
	</tr>
	<tr>
		<td colspan="2" width="100%" align="center" style="background-color: #eee">
			<input type="submit" value="确认提交" />&nbsp;&nbsp;<input type="button" value="返回" onclick="window.history.go(-1);" />
		</td>
	</tr>	
</table>
</form>
<style>
	.TableA { border-collapse:collapse }
	.TableA tr td { padding: 4px; }
</style>
<script type="text/javascript">
	function check_score()
	{
		score = $('#score').val();
		var reg = /^[1-9]\d*$/;
		if (!reg.test(score)) {
			alert('请输入数字');
			return false;
		}
		return true;
	}
</script>